package com.itheima.d7_IO.FileReader01;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;

public class Test {
    public static void main(String[] args) throws Exception {
        Reader fileReader = new FileReader("E:\\FileResource\\Test.txt");
        // 1. 一个字符一个字符读
        /*int read = fileReader.read();
        System.out.println((char) read);*/
        int read;
        while((read = fileReader.read())!=-1) {
            System.out.println((char) read);
        }

    }
}
